package com.woniu.liuzhougov.itemAndTask.pojo;

import com.woniu.liuzhougov.authorityControl.pojo.User;

import java.util.Date;
/*
 * @Author Wuyuzhong
 * @Description 事项任务关系
 * @Date 2019/4/19 14:32
 **/
public class ItemTask {
    private Integer itemTaskId;
    //指派人
    private User itemTaskWorker;
    //所属事项
    private Item item;
    //子任务状态
    private ItemTaskStatus itemTaskStatus;

    private String itemTaskContent;

    private Date itemTaskTime;

    private Integer flag;

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public ItemTask(Integer itemTaskId, User itemTaskWorker, Item item,
                    ItemTaskStatus itemTaskStatus, String itemTaskContent,
                    Date itemTaskTime, Integer flag) {
        this.itemTaskId = itemTaskId;
        this.itemTaskWorker = itemTaskWorker;
        this.item = item;
        this.itemTaskStatus = itemTaskStatus;
        this.itemTaskContent = itemTaskContent;
        this.itemTaskTime = itemTaskTime;
        this.flag = flag;
    }

    public Integer getItemTaskId() {
        return itemTaskId;
    }

    public void setItemTaskId(Integer itemTaskId) {
        this.itemTaskId = itemTaskId;
    }

    public User getItemTaskWorker() {
        return itemTaskWorker;
    }

    public void setItemTaskWorker(User itemTaskWorker) {
        this.itemTaskWorker = itemTaskWorker;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public ItemTaskStatus getItemTaskStatus() {
        return itemTaskStatus;
    }

    public void setItemTaskStatus(ItemTaskStatus itemTaskStatus) {
        this.itemTaskStatus = itemTaskStatus;
    }

    public String getItemTaskContent() {
        return itemTaskContent;
    }

    public void setItemTaskContent(String itemTaskContent) {
        this.itemTaskContent = itemTaskContent;
    }

    public Date getItemTaskTime() {
        return itemTaskTime;
    }

    public void setItemTaskTime(Date itemTaskTime) {
        this.itemTaskTime = itemTaskTime;
    }

    public ItemTask(Integer itemTaskId, User itemTaskWorker, Item item,
                    ItemTaskStatus itemTaskStatus, String itemTaskContent, Date itemTaskTime) {
        this.itemTaskId = itemTaskId;
        this.itemTaskWorker = itemTaskWorker;
        this.item = item;
        this.itemTaskStatus = itemTaskStatus;
        this.itemTaskContent = itemTaskContent;
        this.itemTaskTime = itemTaskTime;
    }

    public ItemTask() {
    }

    @Override
    public String toString() {
        return "ItemTask{" +
                "itemTaskId=" + itemTaskId +
                ", itemTaskWorker=" + itemTaskWorker +
                ", item=" + item +
                ", itemTaskStatus=" + itemTaskStatus +
                ", itemTaskContent='" + itemTaskContent + '\'' +
                ", itemTaskTime=" + itemTaskTime +
                '}';
    }
}